<%@ page language="java" contentType="text/html; charset=UTF-8" 
    pageEncoding="UTF-8"%> 
  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<script type="text/javascript" src="<c:url value="/js/jquery-easyui-1.5.5.6/jquery.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery-easyui-1.5.5.6/jquery.easyui.min.js"/>"></script>
<script type="text/javascript" src="<c:url value="/js/jquery-easyui-1.5.5.6/locale/easyui-lang-zh_CN.js"/>"></script>
<link rel="stylesheet" href="<c:url value="/js/jquery-easyui-1.5.5.6/themes/icon.css"/>"/>
<link rel="stylesheet" href="<c:url value="/js/jquery-easyui-1.5.5.6/themes/default/easyui.css"/>"/>
<title>新增员工</title>
</head>
<body>
	<script type="text/javascript">
		$(function(){
			
			//编辑
			$('#wdm_ygzttable_tjjcgl22').linkbutton({onClick:function(){
				if($("#ygid2").textbox("getText")==""){
					$.messager.confirm("提示","请填写全部内容",function(r){
						
					});
				}else{
					$("<form method='post'>").appendTo(document.body).form({
						url: 'update2_ygzttable',
						onSubmit: function(params){
							params["stainId"] = $("#ygid2").textbox("getText");
							params["stainName"] = $("#ygname2").textbox("getText");
							params["ygztPerson"] = $("#zdrygztbd2").textbox("getText");
							params["ygztDate"] = $("#ygztbdrq2").textbox("getText");
							params["ygztBeizhu"] = $("#ygztbeizhu2").textbox("getText");
							params["jobsName"] = $("#ygztxzt2").combobox("getText");
							params["jobsId"] = $("#ygztxzt2").combobox("getValue");
							params["ygztStartdate"] = $("#ygztbdrqzdsj2").textbox("getText");
							params["ygztId"] = ${list.ygztId}; 
						},success:function(v){
							v = eval("(" + v + ")");
							if(v.success){
								  $(".yglz-wdm-ygzttables").panel({
										href:'to_ygzttable'
									});	  
								
							}else{
								$.messager.alert('错误', '对不起，操作失败，原因：' + v.message);
							}
						}
					}).submit();
				}
				
			}});
			
			
			//combox进来赋值
			/*  $('.ygztbdrq').val(${list.jobStatus.jobsId});
			$('.ygztbdrq').text(${list.jobStatus.jobsName}); */
			
			
			//返回上一级事件
			$(".ygzt_update_back").linkbutton({
				onClick:function(){
					$(".yglz-wdm-ygzttables").panel({
						href:'to_ygzttable'
					});	
				}
		});
		});
	</script>
	<div id="toolbar_contract_insert_insert">
		<a href="#" class="easyui-linkbutton ygzt_update_back" data-options="iconCls:'icon-reload',plain:true,text:'返回',iconAlign:'left'"></a>
	</div>
	<div style="width:1000px;margin-top:10px;margin-left:10px;font-size:14px;">
		<div style="font-size:14px;">概要</div>
		<div style="border-top:2px solid #2B91D5;width:400px;height:150px;float:left;margin-right:15px;">
			<table cellspacing="10">
				<tbody>
					<tr>
						<td align="right">*员工编号</td>
						<td><input class="easyui-textbox staffid" id="ygid2" value="${list.staffInformation.stainId}" /></td>
					</tr>
					<tr>
						<td align="right">员工名称</td>
						<td><input class="easyui-textbox" id="ygname2" value="${list.staffInformation.stainName}"/></td>
					</tr>
					<tr>
						<td align="right">部门</td>
						<td><input class="easyui-textbox" id="bm2"  value="${list.staffInformation.definitionDept.defideName}"/></td>
					</tr>
					
				</tbody>
			</table>
		</div>
		<div style="border-top:2px solid #2B91D5;width:400px;float:left;">	
			<table cellspacing="10">
				<tbody>
					
					<tr>
						<td width="100px" align="right">制单人</td>
						<td><input class="easyui-textbox" id="zdrygztbd2" value="${list.ygztPerson}"/></td>
					</tr>
					<tr>
						<td align="right">制单日期</td>
						<td><input type= "text" class= "easyui-datetimebox" id="ygztbdrqzdsj2"  value="${list.ygztStartdate}"/></td>
					</tr>			
				</tbody>
			</table>
		</div>
		<div style="font-size:14px;width:200px;">内容</div>
		<div style="border-top:2px solid #2B91D5;width:400px;height:200px;float:left;margin-right:15px;">
			<table cellspacing="10">
				<tbody>
					<tr>
						<td align="right">变动日期</td>
						<td><input type= "text" class= "easyui-datetimebox" id="ygztbdrq2"  value="${list.ygztDate}"/></td>
					</tr>
					<tr>
						<td align="right">新状态</td>
						<td><input type= "text" value="${list.jobStatus.jobsName}" class= "easyui-combobox yzglzt" id="ygztxzt2" data-options="url:'query_Employment_status',valueField:'jobsId',textField:'jobsName',panelHeight:'auto'" 
						/></td>
					</tr>
				</tbody>
			</table>
		</div>
		
		<div style="font-size:14px;width:200px;">备注</div>
		<div style="margin-left:30px;margin-top:10px;">
			<input class="easyui-textbox " id="ygztbeizhu2"  data-options="width:800,height:40,validType:'mobile',prompt:'备注',multiline:true"
			value="${list.ygztBeizhu}"> 
		</div>
		
		
		
		
		<div style="border-top:2px solid #2B91D5;width:830px;height:10px;clear:both;margin-top:30px;"></div>
		<a class="easyui-linkbutton " id="wdm_ygzttable_tjjcgl22" style="margin-left:30px;width:100px;">添加</a>
	</div>
	


		

	
</body>
</html>